﻿using System;
using Autofac入手.Interface;

namespace Autofac入手.Class
{
    public class DateWrite : IDateWrite
    {
        private IOutPut _outPut;

        public DateWrite(IOutPut outPut)
        {
            this._outPut = outPut;
        }

        public void WriteDate(string content)
        {
            _outPut.Write(content);
        }
    }
}